
import HomeIndex from '../views/homeIndex/index';
import Login from '../views/login/index'

import Tab1 from '../views/homeIndex/pages/tab1'
import Tab2 from '../views/homeIndex/pages/tab2'
import Tab3 from '../views/homeIndex/pages/tab3'
import Tab4 from '../views/homeIndex/pages/tab4'

const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/homeIndex',
    component: HomeIndex,
    children: [
      {
        path: '/homeIndex',
        redirect: '/homeIndex/book'
      },
      {
        path: '/homeIndex/book',
        component: Tab1
      },
      {
        path: '/homeIndex/approve',
        component: Tab2
      },
      {
        path: '/homeIndex/manager',
        component: Tab3
      },
      {
        path: '/homeIndex/settings',
        component: Tab4
      }
    ]
  },
  {
    path: '/login',
    component: Login
  }
];

export default routes;
